-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] forbid-prop-types
: Ignore objects that are not of type React.PropTypes
#3326
[Fix] forbid-prop-types
: Ignore objects that are not of type React.PropTypes
#3326
Conversation
@ljharb Please review! |
Codecov Report
@@ Coverage Diff @@
## master #3326 +/- ##
==========================================
- Coverage 97.72% 97.71% -0.02%
==========================================
Files 123 123
Lines 8822 8866 +44
Branches 3213 3240 +27
==========================================
+ Hits 8621 8663 +42
- Misses 201 203 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just one question.
1d5af2c
to
5118610
Compare
08a5366
to
cecfc49
Compare
@TildaDares i've rebased this, and added two "invalid" test cases, which seem to be failing. |
@ljharb All tests are passing now. |
ec158dc
to
32e2700
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
forbid-prop-types
: Ignore objects that are not of type React.PropTypesforbid-prop-types
: Ignore objects that are not of type React.PropTypes
32e2700
to
17e19e5
Compare
I added a missing test case, and removed the "import declaration node with no specifiers" - both because i believe it can't ever be hit, and also because it won't crash in that case anyways. This should be ready to merge once tests pass. |
17e19e5
to
6b330b8
Compare
Fixes #2722